﻿<Window 
    xmlns:local="clr-namespace:DataBinding"
    x:Class="DataContent"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="DataContent" Height="194" Width="300">
    <Grid DataContext="{x:Static local:Data.Person}">
        <TextBlock Height="21" HorizontalAlignment="Left" Margin="4,21,0,0" VerticalAlignment="Top" Width="83" Text="First Name" />
        <TextBox Text="{Binding Path=FirstName}" Height="23" Margin="89,18,12,0" VerticalAlignment="Top" />
        <TextBlock Height="21" HorizontalAlignment="Left" Margin="4,51,0,0" Text="Last Name" VerticalAlignment="Top" Width="83" />
        <TextBox Height="23" Margin="89,48,12,0" Text="{Binding Path=LastName}" VerticalAlignment="Top" />
        
        <TextBlock Text="DataContext is inherited from parent element" Height="29.348" Margin="4,0,6.003,24.012" VerticalAlignment="Bottom" TextAlignment="Center" />
    </Grid>
</Window>
